package cn.edu.njuit.children.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName sys_encyclopedia
 */
@TableName(value ="sys_encyclopedia")
@Data
public class Encyclopedia implements Serializable {
    /**
     * 编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "desc")
    private String desc;

    /**
     * 百科图片（以逗号分隔）
     */
    @TableField(value = "big_picture")
    private String bigPicture;

    /**
     * 浏览次数
     */
    @TableField(value = "encyclopedia_views")
    private Integer encyclopediaViews;

    /**
     * 发表时间
     */
    @TableField(value = "publish_date")
    private Date publishDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
